<?php
namespace app\model;

use think\Model;

class Admin extends Model
{
    //用户信息
    public function profile(){
        return $this->hasMany(Profile::class,'user_id');
    }
    public function orderlist(){
        return $this->hasMany(\Order::class,'user_id');
    }
    public function role(){
        return $this->belongsToMany(Role::class,RoleUser::class,'role_id','user_id');
    }
}